<?php

namespace plugins\yifang_backend_account\client\admin;

class C_rbac_access
{
    /**
     * 获取数据
     * @param string $paramObj
     */
    public function getData($paramObj=""){
        $paramsObj=paramsObj();
        $paramsObj->mixed=1;
        $paramsObj=blenderObject($paramsObj,$paramObj);
        $checkResult=app("YifangBackendAccount_S_Admin_rbacAccess")->getData($paramsObj);
        if($checkResult["error_no"]==0){
            return apiResult(true,"success",0,$checkResult["result"],$checkResult["extra"]);
        }else{
            recordErrorLog($checkResult); //记录错误信息
            return apiResult(false,$checkResult["error_msg"],$checkResult["error_no"]);
        }
    }
}